package com.bysj.lms.service;

import com.bysj.lms.pojo.entity.DictionaryItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
public interface IDictionaryItemService extends IService<DictionaryItem> {

    //分页查询字典数据
    PageInfo findByPage(int typeId, int page, int count);

    //查询数据
    DictionaryItem find(int typeId,String name);

    //更改状态
    boolean updateStatus(int id,int status);

    //根据type查询数据
    List<DictionaryItem> findByType(String type);
    
    DictionaryItem find(String type,String value);
}
